<template>
	<h2>provide 与 inject</h2>
	<h3>当前的颜色:{{ color }}</h3>
	button
</template>

<script lang="ts">
import { defineComponent, ref } from "vue"

export default defineComponent({
	name: "App",
	setup(props) {
		const color = ref("red")
		return {
			color
		}
	}
})
</script>

<style></style>
